﻿@model IEnumerable<GameSchoolApplication.Models.ViewModels.CourseIcon>
@foreach (var cIcon in Model)
{
    <a class="courseIcon" href=@string.Concat("/Course/CourseView?courseID=", cIcon.courseID) >
        <input type="hidden" value=@cIcon.courseID />
        <label class="courseTitle">@cIcon.courseName</label>
        <progress class="progBar" value="@(cIcon.progress)" max="@cIcon.maxLevel" />
    </a>
    <!--courseIcon end-->
    
}
<script id="iconTemplate" type="text/html">
    <div id ="icon">
        <h3>${name}</h3>
        <div class="progressBar"></div>
    </div>

</script>
